Skip to content

Conversation

kazurayam
Copy link

@kazurayam kazurayam commented Nov 7, 2023

See kazurayam#5 for the detail of what I have done.

The O'Reilly book "Hands-on Selenium WebDriver with Java", Chapter 9 shows a sample code 9-4 that uses BrowserMob Proxy together with WebDriverManager. Unfortunately the sample code sometimes fails, because both products depend on the bouncycastle.org products, but different series of jar.

For example, BrowserMob Proxy depends onorg.bouncycastle:bcprov-jdk15on; but WebDriverManater depends on org.bouncycastle:bcprov-jdk18on. This difference causes the Example 9-4 to fail with message

java.lang.NoSuchFieldError: id_RSASSA_PSS_SHAKE128

In order to resolve this problem, I updated the pom.xml files of browsermob-proxy project so that it depends on the newer jars named -jdk18on.

@kazurayam kazurayam changed the title update the dependency to the bouncycastle projects from "-jdk15on" jars to "-jdk18on:1.76" jars update the dependency to the bouncycastle project from "-jdk15on" jars to "-jdk18on:1.76" jars Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant